package com.lyf.practice.ioc;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author LYF
 * @date 2022/6/20
 */
public class BeanFactoryDemo {
    public static void main(String[] args) {
       // BeanFactory

        ApplicationContext context = new AnnotationConfigApplicationContext("");
        ApplicationContext context1 = new ClassPathXmlApplicationContext("");
        //ApplicationContext context2 = new

        BeanFactory beanFactory = new ClassPathXmlApplicationContext();

    }
}
